import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: '/',
        name: 'homePage',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/home/homePage.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/login/loginPage.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/login/registerPage.vue')
    },
    {
        path: '/forget',
        name: 'forget',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/login/forgetPage.vue')
    },
    {
        path: '/kocVip',
        name: 'kocVip',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/kocVip/kocVip.vue')
    },
    {
        path: '/teach',
        name: 'teach',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/teach/teachPage.vue')
    },
    {
        path: '/teachDetail',
        name: 'teachDetail',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/teach/teachDetail.vue')
    },
    {
        path: '/kocNewDetail',
        name: 'kocNewDetail',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/kocNew/kocNewDetail.vue')
    },
    {
        path: '/staging',
        name: 'staging',
        component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/indexPage.vue'),
        children: [
            {
                path: '/adminKanBan',
                name: 'adminKanBan',
                meta: {
                    nav: ['管理看板']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/adminKanBan.vue')
            },
            {
                path: '/redPersonSearch',
                name: 'redPersonSearch',
                meta: {
                    nav: ['红人推广', '红人搜索']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/celebrityPromotion/redPersonSearch.vue')
            },
            {
                path: '/noticeList',
                name: 'noticeList',
                meta: {
                    nav: ['消息通知']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/noticeList.vue')
            },
            {
                path: '/promotionPlan',
                name: 'promotionPlan',
                meta: {
                    nav: ['红人中心', '红人推广', '推广计划']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/celebrityPromotion/promotionPlan.vue')
            },
            {
                path: '/promotionPlanDetail',
                name: 'promotionPlanDetail',
                meta: {
                    nav: ['红人中心', '红人推广', '推广计划']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/celebrityPromotion/promotionPlanDetail.vue')
            },
            {
                path: '/blogerManager',
                name: 'blogerManager',
                meta: {
                    nav: ['红人中心', '红人CRM', '红人管理']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/redPersonCRM/blogerManager.vue')
            },
            {
                path: '/favoritesDetail',
                name: 'favoritesDetail',
                meta: {
                    nav: ['红人中心', '红人CRM', '收藏夹']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/redPersonCRM/favoritesDetail.vue')
            },
            {
                path: '/blogerdetails',
                name: 'blogerdetails',
                meta: {
                    nav: ['红人中心', '红人CRM', '红人管理', '红人详情']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/redPersonCRM/blogerdetails.vue')
            },
            {
                path: '/bloggerSchedule',
                name: 'bloggerSchedule',
                meta: {
                    nav: ['红人中心', '红人CRM', '红人进度']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/redPersonCRM/bloggerSchedule.vue')
            },
            {
                path: '/planblogerdetail',
                name: 'planblogerdetail',
                meta: {
                    nav: ['红人中心', '红人CRM', '红人进度', '红人详情']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/redPersonCRM/planblogerdetail.vue')
            },
            {
                path: '/proCenter',
                name: 'proCenter',
                meta: {
                    nav: ['营销中心', '我的产品']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/myPro/proCenter.vue')
            },
            {
                path: '/proDetail',
                name: 'proDetail',
                meta: {
                    nav: ['营销中心', '我的产品']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/myPro/proDetail.vue')
            },
            {
                path: '/inBox',
                name: 'inBox',
                meta: {
                    nav: ['营销中心', '邮件中心', '收件箱']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/mailHub/inBox.vue')
            },
            {
                path: '/inboxDetail',
                name: 'inboxDetail',
                meta: {
                    nav: ['营销中心', '邮件中心', '收件箱']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/mailHub/inboxDetail.vue')
            },
            {
                path: '/outBox',
                name: 'outBox',
                meta: {
                    nav: ['营销中心', '邮件中心', '发件箱']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/mailHub/outBox.vue')
            },
            {
                path: '/outboxDetail',
                name: 'outboxDetail',
                meta: {
                    nav: ['营销中心', '邮件中心', '发件箱']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/mailHub/outboxDetail.vue')
            },
            {
                path: '/draftBox',
                name: 'draftBox',
                meta: {
                    nav: ['营销中心', '邮件中心', '草稿箱']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/mailHub/draftBox.vue')
            },
            {
                path: '/writeEmail',
                name: 'writeEmail',
                meta: {
                    nav: ['营销中心', '邮件中心', '发送邮件']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/mailHub/writeEmail.vue')
            },
            {
                path: '/blogMail',
                name: 'blogMail',
                meta: {
                    nav: ['营销中心', '邮件中心', '邮件中心']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/mailHub/blogMail.vue')
            },
            {
                path: '/blogTask',
                name: 'blogTask',
                meta: {
                    nav: ['营销中心', '红人任务']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/blogTask/taskList.vue')
            },
            {
                path: '/taskDetail',
                name: 'taskDetail',
                meta: {
                    nav: ['营销中心', '红人任务']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/blogTask/taskDetail.vue')
            },
            {
                path: '/editTask',
                name: 'editTask',
                meta: {
                    nav: ['营销中心', '红人任务']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/blogTask/editTask.vue')
            },
            {
                path: '/blogContactDetail',
                name: 'blogContactDetail',
                meta: {
                    nav: ['营销中心', '红人任务']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/blogTask/blogContactDetail.vue')
            },
            {
                path: '/shopManage',
                name: 'shopManage',
                meta: {
                    nav: ['营销中心', '独立站分销', '店铺管理']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/distribution/shopManage.vue')
            },
            {
                path: '/sellPlan',
                name: 'sellPlan',
                meta: {
                    nav: ['营销中心', '独立站分销', '分销计划']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/distribution/sellPlan.vue')
            },
            {
                path: '/brandInsights',
                name: 'brandInsights',
                meta: {
                    nav: ['社媒营销中心', '品牌洞察']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/brand/brandInsights.vue')
            },
            {
                path: '/myLock',
                name: 'myLock',
                meta: {
                    nav: ['社媒营销中心', '品牌洞察', '我的解锁']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/brand/myLock.vue')
            },
            {
                path: '/myFocus',
                name: 'myFocus',
                meta: {
                    nav: ['社媒营销中心', '品牌洞察', '我的关注']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/brand/myFocus.vue')
            },
            {
                path: '/brandDetail',
                name: 'brandDetail',
                meta: {
                    nav: ['社媒营销中心', '品牌洞察', '品牌详情']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/brand/brandDetail.vue')
            },
            {
                path: '/redPersonRanking',
                name: 'redPersonRanking',
                meta: {
                    nav: ['社媒营销中心', '红人排行榜']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/ranking/redPersonRanking.vue')
            },
            {
                path: '/creativeContent',
                name: 'creativeContent',
                meta: {
                    nav: ['社媒营销中心', '创意内容']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/creativeContent/creativeContent.vue')
            },
            {
                path: '/creativeScript',
                name: 'creativeScript',
                meta: {
                    nav: ['社媒营销中心', '创意脚本']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/creativeScript/creativeScript.vue')
            },
            {
                path: '/createDemand',
                name: 'createDemand',
                meta: {
                    nav: ['KOL全案营销', '提交需求']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/kolMarketing/createDemand.vue')
            },
            {
                path: '/addDemand',
                name: 'addDemand',
                meta: {
                    nav: ['KOL全案营销', '提交需求']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/kolMarketing/addDemand.vue')
            },
            {
                path: '/pickBlog',
                name: 'pickBlog',
                meta: {
                    nav: ['KOL全案营销', 'KOL挑选']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/kolMarketing/pickBlog.vue')
            },
            {
                path: '/projectData',
                name: 'projectData',
                meta: {
                    nav: ['KOL全案营销', '项目数据']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/kolMarketing/projectData.vue')
            },
            {
                path: '/teamManage',
                name: 'teamManage',
                meta: {
                    nav: ['团队管理']
                },
                component: () => import(/* webpackChunkName: "chat-tool" */ '@/views/staging/menu/teamManage/teamManage.vue')
            }
        ]
    },
];

const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;